﻿using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(Actor))]
[ExecuteInEditMode]
public class UI_Actor : Editor {
    public override void OnInspectorGUI()
    {
        Actor test = (Actor)target;
        base.DrawDefaultInspector();
        if (GUILayout.Button("天降正义 -10HP"))
        {
            test.hurt(10);
        }
    }
}
